package com.feicheng.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.entity.OutboundHeader;
import com.feicheng.mapper.OutboundHeaderMapper;
import com.feicheng.model.OutboundWithSale;
import com.feicheng.model.OutboundWithSaleWithWarehouse;
import com.feicheng.service.IOutboundHeaderService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hao.zhang
 * @since 2022-07-04
 */
@Service
public class OutboundHeaderServiceImpl extends ServiceImpl<OutboundHeaderMapper, OutboundHeader> implements IOutboundHeaderService {
    /**
     * 出库详情头
     * @param wrapper
     * @author jing.zhou
     * @return
     */
    @Override
    public OutboundWithSale selectOutbound(Wrapper wrapper) {
        return this.getBaseMapper().selectOutbound(wrapper);
    }
    /**
     * 出库条件分页
     * @param wrapper
     * @author wei.zhang
     * @return
     */
    @Override
    public Page<OutboundWithSaleWithWarehouse> getOutbound(Page<OutboundWithSaleWithWarehouse> page, Wrapper wrapper) {
        return this.getBaseMapper().getOutbound(page,wrapper);
    }
}
